package com.bjpowerndoe.ylb.web.service.inter;

import com.bjpowerndoe.ylb.map.UserAccountMap;
import com.bjpowerndoe.ylb.web.enums.CodeEnum;
import com.bjpowerndoe.ylb.web.model.dto.UserDTO;

/**
 *
 */
public interface UserService {

    //验证短信验证码
    boolean checkSmsCode(String action,String phone,String code);
    //注册用户
    CodeEnum userRegister(String phone,String secret);

    //登录用户
    UserDTO userLogin(String phone, String secret);

    //存储数据到redis
    boolean saveTokenToRedis(UserDTO userDTO, String token);

    //查询用户
    UserDTO queryUserById(Integer uid);

    //实名认证
    boolean userRealname(Integer uid, String name, String idCard);

    //查询用户和账号资金
    UserAccountMap queryUserAccountByUid(Integer uid);
}
